package com.zlsy.springbootdemo.entity.template.boosting;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.data.annotation.Id;
import org.springframework.data.annotation.TypeAlias;
import org.springframework.data.elasticsearch.annotations.Document;
import org.springframework.data.elasticsearch.annotations.Field;
import org.springframework.data.elasticsearch.annotations.FieldType;

/**
 * @author zhouliang
 * @date 2020/6/3 10:01
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@TypeAlias("templateboosting")
@Document(indexName = "templateboosting", shards = 1, replicas = 0)
public class TemplateBoostingEntity {

    @Id
    @Field(type = FieldType.Long)
    private Long id;

    @Field(type = FieldType.Text)
    private String remark;

}
